export const columns: GameEntity[] = world.querySelectorAll('#柱子-1');
export const column2: GameEntity = world.querySelector('#柱子-1-1')!;

setInterval(() => {
    columns.forEach((column, id) => {
        column.meshOrientation.copy(
            column.meshOrientation.rotateY(((id - 0.5) * Math.PI) / 200)
        );
    });
}, 46);

columns.forEach((column) => {
    column.onEntityContact(({ other }) => {
        if (other.player) {
            other.position.copy(other.player.spawnPoint);
        }
    });
});
